<template>
	<div class="tpl9-title"
    :style="tplItemData.modulePadding || tplItemData.modulePadding ==0?'padding-top:'+tplItemData.modulePadding+'px;padding-bottom:'+tplItemData.modulePadding+'px;':'padding-top:5px;padding-bottom:5px;'">
    <div class="title-box" :class="tplItemData.fontSize">
        <h2 class="title">{{tplItemData.title}}</h2>
        <h3 class="subtitle">{{tplItemData.subtitle}}</h3>
    </div>
  </div>
</template>

<script>
/**
 * @Author: yqe@360shop.cn
 * @Date: 2020年07月08日15:11:21
 * @Last Modified by: yqe@360shop.cn
 * @Last Modified time: 2020年07月08日15:11:21
 */
import Vue from 'vue'
import { NoticeBar } from 'vant'

Vue.use(NoticeBar)
export default {
  name: 'index',
  components: {
  },
  props: {
    tplItemData: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  created() {
    // // console.log(this.tplItemData)
  }
}
</script>

<style lang="scss">
.tpl9-title{
  .title{
    font-size: 28px;
    font-weight: 700;
    color: #333;
  }
  .subtitle{
    font-size: 24px;
    color: #666;
    line-height: 40px;
  }
}
</style>
